import { Router } from 'express'
import { getCurrentUser, updateUser } from '../controllers/users'
import { getCurrentUserValidator, updateUserValidator } from '../middlewares/validation'
const router = Router()

router.get('/me', getCurrentUserValidator, getCurrentUser)
router.patch('/me', updateUserValidator, updateUser)

export default router
